__file__ = 'MessageFormPost.py'
__author__ = 'Jerry Liu'
__date__ = '2016-04-18'

from django import forms

# 提交message的表单
class MessagePostForm(forms.Form):
    title = forms.CharField(label='标题', widget=forms.TextInput(attrs={'size': 30, 'max_lenth': 30}))
    author = forms.CharField(label='昵称', widget=forms.TextInput(attrs={'size': 30, 'max_length': 30}))
    content = forms.CharField(label='内容', widget=forms.Textarea(attrs={'size': 10000}))

